import request from '@/utils/request'

// 查询在线办理应用信息列表
export function listApply(query) {
  return request({
    url: '/apply/info/list',
    method: 'get',
    params: query
  })
}

// 查询在线办理应用信息详细
export function getApply(id) {
  return request({
    url: '/apply/info/' + id,
    method: 'get'
  })
}

// 新增在线办理应用信息
export function addApply(data) {
  return request({
    url: '/apply/info',
    method: 'post',
    data: data
  })
}

// 修改在线办理应用信息
export function updateApply(data) {
  return request({
    url: '/apply/info',
    method: 'put',
    data: data
  })
}

// 删除在线办理应用信息
export function delApply(id) {
  return request({
    url: '/apply/info/' + id,
    method: 'delete'
  })
}

// 导出在线办理应用信息
export function exportApply(query) {
  return request({
    url: '/apply/info/export',
    method: 'get',
    params: query
  })
}

// 导出在线办理应用信息
export function parentApplyList(query) {
  return request({
    url: '/apply/info/parentApplyList',
    method: 'get',
    params: query
  })
}
